<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link rel="stylesheet" type="text/css" href="../../static/admin/layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="../../static/admin/css/admin.css" />
<link rel="stylesheet" type="text/css" href="../../layui/css/modules/laydate/default/laydate.css" />
<script type="text/javascript" src="../../layui/lay/modules/laydate.js"></script>
<!--	
		<link rel="stylesheet" type="text/css" href="../../layui/formSelects-v4.css" />
		<script type="text/javascript" src="../../layui/formSelects-v4.js"></script>
 -->
</head>
<body>
	<div class="wrap-container">
		<form class="layui-form" style="width: 90%; padding-top: 20px;"
			action="/web/firstTicket">
			<div class="layui-form-item">
				<label class="layui-form-label">单据编号：</label>
				<div class="layui-input-block">
					<label class="layui-form-label"
						style="font-weight: bold; color: red;" id="djbh"></label>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">工作任务：</label>
				<div class="layui-input-block">
					<input type="text" name="gzrw" lay-verify="required"
						placeholder="请输入工作任务" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">计划的工作时间范围：</label>
				<div class="layui-input-block">
					<input id="jhgzsjfw" readonly="readonly" type="text"
						name="jhgzsjfw" lay-verify="required" placeholder="请选择进入时间"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">申请部门：</label>
				<div class="layui-input-block">
					<select name="sqbm" lay-verify="required">
						<option value=""></option>
						<option value="0">默认名称</option>
						<option value="实验一部">实验一部</option>
						<option value="实验二部">实验二部</option>
						<option value="实验四部">实验四部</option>
						<option value="实验五部">实验五部</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">部门负责人：</label>
				<div class="layui-input-block">
					<select name="bmfzr" lay-verify="required">
						<option value=""></option>
						<option value="0">默认名称</option>
						<option value="高连升">高连升</option>
						<option value="侯德超">侯德超</option>
						<option value="王鹏">王鹏</option>
						<option value="邓珩">邓珩</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">工作负责人：</label>
				<div class="layui-input-block">
					<select name="gzfzr" lay-verify="required">
						<option value=""></option>
						<option value="0">默认名称</option>
						<option value="李先东">李先东</option>
						<option value="陈祖德">陈祖德</option>
						<option value="邱宇清">邱宇清</option>
						<option value="王鹏魁">王鹏魁</option>
						<option value="唐荣">唐荣</option>
						<option value="廖亮">廖亮</option>
					</select>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">工作班人员：</label>
				<div class="layui-input-block">
					<select name="gzbry" lay-verify="required">
						<option value=""></option>
						<option value="0">默认名称</option>
						<option value="刘佳">刘佳</option>
						<option value="熊加庆">熊加庆</option>
						<option value="王正星">王正星</option>
						<option value="王鹏魁">王鹏魁</option>
						<option value="吴永生">吴永生</option>
						<option value="王鹏">王鹏</option>
						<option value="余定华">余定华</option>
						<option value="彭燕">彭燕</option>
						<option value="罗承渺">罗承渺</option>
						<option value="杨亚运">杨亚运</option>
						<option value="胡卫民">胡卫民</option>
						<option value="蔡万银">蔡万银</option>
						<option value="易建业">易建业</option>
						<option value="殷俊">殷俊</option>
						<option value="徐良">徐良</option>
						<option value="杨天矾">杨天矾</option>
						<option value="侯德超">侯德超</option>
						<option value="廖亮">廖亮</option>
						<option value="陈以功">陈以功</option>
						<option value="王丽华">王丽华</option>
						<option value="黄东">黄东</option>
						<option value="张智">张智</option>
						<option value="监控员">监控员</option>
						<option value="徐绍龙">徐绍龙</option>
						<option value="丁杰">丁杰</option>
						<option value="余锋">余锋</option>
						<option value="徐静">徐静</option>
						<option value="谭伟珍">谭伟珍</option>
						<option value="邓樵轩">邓樵轩</option>
						<option value="陈彪">陈彪</option>
						<option value="胡夏颖">胡夏颖</option>
						<option value="郭丽雯">郭丽雯</option>
						<option value="毛远琪">毛远琪</option>
						<option value="刘国涛">刘国涛</option>
						<option value="王杰杰">王杰杰</option>
						<option value="彭烨">彭烨</option>
						<option value="张祥珊">张祥珊</option>
						<option value="王伟">王伟</option>
						<option value="申慧">申慧</option>
						<option value="汤文清">汤文清</option>
						<option value="邓珩">邓珩</option>
						<option value="吴赟">吴赟</option>
						<option value="冯斌">冯斌</option>
						<option value="彭超">彭超</option>
						<option value="袁正文">袁正文</option>
						<option value="赵建伟">赵建伟</option>
						<option value="罗旺">罗旺</option>
						<option value="杨琦">杨琦</option>
						<option value="李斌">李斌</option>
						<option value="卜辉">卜辉</option>
						<option value="殷晓">殷晓</option>
						<option value="王磊">王磊</option>
						<option value="马西志">马西志</option>
						<option value="文工雨">文工雨</option>
						<option value="王长亮">王长亮</option>
						<option value="邓敏">邓敏</option>
						<option value="陈祖德">陈祖德</option>
						<option value="邱宇清">邱宇清</option>
						<option value="程浩">程浩</option>
						<option value="刘护林">刘护林</option>
						<option value="高连升">高连升</option>
						<option value="吴昊">吴昊</option>
						<option value="陈久力">陈久力</option>
						<option value="李拓">李拓</option>
						<option value="刘国钧">刘国钧</option>
						<option value="鲁秀龙">鲁秀龙</option>
						<option value="朱亮">朱亮</option>
						<option value="黄鹏">黄鹏</option>
						<option value="王彬">王彬</option>
						<option value="谭昭">谭昭</option>
						<option value="周小玲">周小玲</option>
						<option value="廖湘">廖湘</option>
						<option value="杨岚">杨岚</option>
						<option value="刘德伟">刘德伟</option>
						<option value="严湘阳">严湘阳</option>
						<option value="杨伟萍">杨伟萍</option>
						<option value="熊建">熊建</option>
						<option value="凌克奎">凌克奎</option>
						<option value="蒋骊湘">蒋骊湘</option>
						<option value="周明辉">周明辉</option>
						<option value="曾国徐">曾国徐</option>
						<option value="廖金">廖金</option>
						<option value="冯江华">冯江华</option>
						<option value="王益民">王益民</option>
						<option value="李先东">李先东</option>
						<option value="张家勇">张家勇</option>
						<option value="马文俊">马文俊</option>
						<option value="宋丹">宋丹</option>
						<option value="黄彦">黄彦</option>
						<option value="姜华">姜华</option>
						<option value="钟慧敏">钟慧敏</option>
						<option value="贾秋志">贾秋志</option>
						<option value="TEST">TEST</option>
						<option value="监控员">监控员</option>
						<option value="高首聪">高首聪</option>
						<option value="刘智聪">刘智聪</option>
						<option value="刘长清">刘长清</option>
						<option value="刘良杰">刘良杰</option>
						<option value="唐恒达">唐恒达</option>
						<option value="翁星方">翁星方</option>
						<option value="杨丹">杨丹</option>
						<option value="王伟">王伟</option>
						<option value="班立权">班立权</option>
						<option value="郭建">郭建</option>
						<option value="李华">李华</option>
						<option value="肖家博">肖家博</option>
						<option value="陈明奎">陈明奎</option>
						<option value="周溢韬">周溢韬</option>
						<option value="刘鼎">刘鼎</option>
						<option value="李亚楠">李亚楠</option>
						<option value="易晓博">易晓博</option>
						<option value="伍雄">伍雄</option>
						<option value="刘彦">刘彦</option>
						<option value="任新旺">任新旺</option>
						<option value="陈健">陈健</option>
						<option value="何祥">何祥</option>
						<option value="罗亚平">罗亚平</option>
						<option value="欧鸿洲">欧鸿洲</option>
						<option value="王海滨">王海滨</option>
						<option value="舒晖">舒晖</option>
						<option value="徐祥斌">徐祥斌</option>
						<option value="吴双艺">吴双艺</option>
						<option value="杜星锐">杜星锐</option>
						<option value="陈高华">陈高华</option>
						<option value="唐时清">唐时清</option>
						<option value="侯峰">侯峰</option>
						<option value="胡宇宸">胡宇宸</option>
						<option value="李欢">李欢</option>
						<option value="李潼清">李潼清</option>
						<option value="唐伟潮">唐伟潮</option>
						<option value="徐丽宾">徐丽宾</option>
						<option value="赵洪坤">赵洪坤</option>
						<option value="陈新">陈新</option>
						<option value="唐慕清">唐慕清</option>
						<option value="梁小云">梁小云</option>
						<option value="郭玉涛">郭玉涛</option>
						<option value="郑锡芳">郑锡芳</option>
						<option value="李小平">李小平</option>
						<option value="陈林秀">陈林秀</option>
						<option value="周超">周超</option>
						<option value="廖岳汉">廖岳汉</option>
						<option value="唐凤英">唐凤英</option>
						<option value="毛迎青">毛迎青</option>
						<option value="姬志远">姬志远</option>
						<option value="刘阳">刘阳</option>
						<option value="苏理">苏理</option>
						<option value="李鹏">李鹏</option>
						<option value="何卫明">何卫明</option>
						<option value="马亚娜">马亚娜</option>
						<option value="陶志勇">陶志勇</option>
						<option value="龚晓婕">龚晓婕</option>
						<option value="孙敏杰">孙敏杰</option>
						<option value="粟爱军">粟爱军</option>
						<option value="罗继光">罗继光</option>
						<option value="单晟">单晟</option>
						<option value="谭智">谭智</option>
						<option value="刘可安">刘可安</option>
						<option value="陈超">陈超</option>
						<option value="徐旺">徐旺</option>
						<option value="何武林">何武林</option>
						<option value="姜高">姜高</option>
						<option value="甘小明">甘小明</option>
						<option value="肖义杰">肖义杰</option>
						<option value="荣展晖">荣展晖</option>
						<option value="黄成">黄成</option>
						<option value="庞辉">庞辉</option>
						<option value="谭泽鹏">谭泽鹏</option>
						<option value="钱华">钱华</option>
						<option value="李锐">李锐</option>
						<option value="赵红亚">赵红亚</option>
						<option value="管理员">管理员</option>
						<option value="邹晓阳">邹晓阳</option>
						<option value="赵艾清">赵艾清</option>
						<option value="邢猛">邢猛</option>
						<option value="余仁辉">余仁辉</option>
						<option value="刘祥旺">刘祥旺</option>
						<option value="张博">张博</option>
						<option value="徐利">徐利</option>
						<option value="王轩">王轩</option>
						<option value="孔珺">孔珺</option>
						<option value="何柏莹">何柏莹</option>
						<option value="吴月">吴月</option>
						<option value="章志兵">章志兵</option>
						<option value="陈新溅">陈新溅</option>
						<option value="佘岳">佘岳</option>
						<option value="唐奔">唐奔</option>
						<option value="张洪彬">张洪彬</option>
						<option value="黄翔">黄翔</option>
						<option value="许萌">许萌</option>
						<option value="邓钰军">邓钰军</option>
						<option value="张英杰">张英杰</option>
						<option value="谭泽鹏01">谭泽鹏01</option>
						<option value="王雨">王雨</option>
						<option value="谢湘剑">谢湘剑</option>
						<option value="郝玥">郝玥</option>
						<option value="孙玉虎">孙玉虎</option>
						<option value="郑军良">郑军良</option>
						<option value="曾东">曾东</option>
						<option value="陈玲">陈玲</option>
						<option value="余定华">余定华</option>
						<option value="余冬日">余冬日</option>
						<option value="汤斌">汤斌</option>
						<option value="郑谦">郑谦</option>
						<option value="兰文辉">兰文辉</option>
						<option value="吕卓">吕卓</option>
						<option value="匡亮">匡亮</option>
						<option value="胡巧红">胡巧红</option>
						<option value="张平平">张平平</option>
						<option value="周会">周会</option>
						<option value="彭思佳">彭思佳</option>
						<option value="黄赫">黄赫</option>
						<option value="许峻峰">许峻峰</option>
						<option value="张东方">张东方</option>
						<option value="王婷">王婷</option>
						<option value="唐海燕">唐海燕</option>
						<option value="邓建华">邓建华</option>
						<option value="张敏">张敏</option>
						<option value="曹洋">曹洋</option>
						<option value="张士锋">张士锋</option>
						<option value="钟海会">钟海会</option>
						<option value="肖柳青">肖柳青</option>
						<option value="钱鑫大">钱鑫大</option>
						<option value="马韬">马韬</option>
						<option value="伍贤">伍贤</option>
						<option value="成正林">成正林</option>
						<option value="罗凌波">罗凌波</option>
						<option value="胡帅">胡帅</option>
						<option value="陈一星">陈一星</option>
						<option value="邓志豪">邓志豪</option>
						<option value="刘永江">刘永江</option>
						<option value="王成福">王成福</option>
						<option value="伍文鑫">伍文鑫</option>
						<option value="杨杰超">杨杰超</option>
						<option value="马幸宇">马幸宇</option>
						<option value="胡家喜">胡家喜</option>
						<option value="唐荣">唐荣</option>
						<option value="宾权">宾权</option>
						<option value="梅文庆">梅文庆</option>
						<option value="易固">易固</option>
						<option value="黄奕睿">黄奕睿</option>
						<option value="何伟">何伟</option>
						<option value="黎邦腾">黎邦腾</option>
						<option value="邹档兵">邹档兵</option>
						<option value="李学明">李学明</option>
						<option value="许义景">许义景</option>
						<option value="唐雄辉">唐雄辉</option>
						<option value="周卫成">周卫成</option>
						<option value="余昌瑾">余昌瑾</option>
						<option value="陈洁莲">陈洁莲</option>
						<option value="刘斐">刘斐</option>
						<option value="朱玲芳">朱玲芳</option>
						<option value="解培金">解培金</option>
						<option value="黄敏">黄敏</option>
						<option value="唐洲">唐洲</option>
						<option value="LIMS">LIMS</option>
						<option value="饶稼祥">饶稼祥</option>
						<option value="胡云卿">胡云卿</option>
						<option value="戴振兴">戴振兴</option>
						<option value="赵鹏">赵鹏</option>
						<option value="甘韦韦">甘韦韦</option>
						<option value="姜海龙">姜海龙</option>
						<option value="陈燕平">陈燕平</option>
						<option value="唐锴">唐锴</option>
						<option value="谢刚">谢刚</option>
						<option value="江宇丁">江宇丁</option>
						<option value="周立君">周立君</option>
						<option value="饶沛南">饶沛南</option>
						<option value="陈超录">陈超录</option>
						<option value="何亚屏">何亚屏</option>
						<option value="刘志斌">刘志斌</option>
						<option value="高龙杰">高龙杰</option>
						<option value="张晨">张晨</option>
						<option value="翟恩毅">翟恩毅</option>
						<option value="黄智刚">黄智刚</option>
						<option value="马振宇">马振宇</option>
						<option value="张定华">张定华</option>
						<option value="沈平">沈平</option>
						<option value="魏凯">魏凯</option>
						<option value="孙烜东">孙烜东</option>
						<option value="刘悦">刘悦</option>
						<option value="付如愿">付如愿</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">工作条件：</label>
				<div class="layui-input-block">
					<textarea name="gztj" placeholder="请输入内容" class="layui-textarea"></textarea>
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">安全措施：</label>
				<div class="layui-input-block">
					<textarea name="aqcs" placeholder="请输入内容" class="layui-textarea"></textarea>
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">工作风险：</label>
				<div class="layui-input-block">
					<p>
						1)高压操作可能因为操作不当造成事故；</br> 2)登高作业可能因为操作不当造成事故； </br>
						3)进入电缆隧道、电缆井、电缆沟道、电缆夹层等作业时可能因为操作不当造成事故；</br> 4)进户隔离刀闸操作可能出现拉弧； </br>
						5)检修完毕后可能导致工具遗漏； </br> 6)使用酒精保养可能导致火灾。</br>
					</p>
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">注意事项：</label>
				<div class="layui-input-block">
					<p>
						1)确认实际作业人员具备操作资质；</br> 2)严格按操作票逐项操作； </br> 3)必须穿戴劳保用具； </br>
						4)进户隔离刀闸操作指派授权人员进行（必须在切断该线路所有负荷情况下操作）； </br> 5)作业前后清点工具； </br>
						6)作业现场严禁吸烟、饮水、食用零食； </br> 7)酒精瓶未用完不放置现场，现场配备足够 </br>
					</p>
				</div>
			</div>

			<div class="layui-form-item">
				<label id="showdoc" class="layui-form-label">许可开始工作时间：</label>
				<div class="layui-input-block">
					<input id="xkksgzsj" readonly="readonly" type="text"
						name="xkksgzsj" lay-verify="required" placeholder="请选择许可开始工作时间"
						autocomplete="off" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label id="showdoc" class="layui-form-label">工作票延期：</label>
				<div class="layui-input-block">
					<p>有效期延长到</p>
					<input id="gzpyq" readonly="readonly" type="text" name="gzpyq"
						lay-verify="required" placeholder="请选择工作票需要延期的时间"
						autocomplete="off" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label id="showdoc" class="layui-form-label">工作结束：</label>
				<div class="layui-input-block">
					<p>接地线共2组已拆除。</p>
					<p>工作班人员已全部撤离，现场已清理完毕。</p>
					<input id="gzjs" readonly="readonly" type="text" name="gzjs"
						lay-verify="required" placeholder="请选择工作结束时间" autocomplete="off"
						class="layui-input">
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">备注：</label>
				<div class="layui-input-block">
					<textarea name="bz" placeholder="请输入内容" class="layui-textarea"></textarea>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn layui-btn-normal" lay-submit
						lay-filter="firstTicket">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</div>
	<script src="../../static/admin/js/jQuery-v3.3.1.js"
		type="text/javascript" charset="utf-8"></script>
	<script src="../../static/admin/layui/layui.js" type="text/javascript"
		charset="utf-8"></script>
	<script>
		var allnum = null;
		$(document).ready(function(){
			var index=layer.open({
				type:2,
				content:['ticket_list.html','no'],
				area:[' ','600px'],
				fixed:true,
				maxmin:true
			});
		})
			//Demo
			layui.use(['form'], function() {
				var form = layui.form();
				form.render();
				//监听提交
			laydate.render({
				  elem: '#jhgzsjfw'
				  ,type: 'datetime'
				  ,range: true
				})
			laydate.render({
					elem: '#xkksgzsj',
					type: 'datetime',
				})
			laydate.render({
					elem: '#gzpyq',
					type: 'datetime',
				})
			laydate.render({
					elem: '#gzjs',
					type: 'datetime',
				})
				form.on('submit(firstTicket)', function(data) {
					var form_data = data.field;
					console.log(form_data);
					form_data.act = "add";
					form_data.djbh = allnum;
					$.ajax({
						type:"GET",
						url:"/web/firstTicket",
						datatye:"json",
						data:form_data,
						success:function(data){
							console.log("请求成功："+data);
							var value = eval('('+data+')');
							if (value.state){
								layer.msg(value.msg, {icon: 1});
							}else{
								layer.msg(value.msg, {icon: 2});
							}
							
						},
						error:function(err){
							console.log(err.status)
						}
					})
					return false;
				});
			});

//-----------------------------------------------------------------------------------				

		</script>
</body>

</html>